package com.vates.vsp;

import javax.swing.UIManager;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.vates.vsp.gui.VentanaPrincipal;

public class Principal {

	public static final ApplicationContext context = new ClassPathXmlApplicationContext(
			"classpath:applicationContext.xml");

	private static VentanaPrincipal vp;
	
	public static void main(String[] args) {

		// cambio el look and feel
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception e) {
		}

		// muestro la ventana principal

		vp = new VentanaPrincipal();
		vp.setVisible(true);

	}

}
